var _hsp = window['_hsp'] = window['_hsp'] || [];
_hsp.push(['setBannerSettings', {"ajuda.gestran.com.br":[{"id":104641,"portalId":23701626,"label":"GDPR Policy","enabled":true,"configuration":{"allUrlsAndLocations":true,"path":null,"targetedCountries":[],"targetedRegions":[]},"policy":{"type":3,"text":{"notification":"This website stores cookies on your computer. These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media. To find out more about the cookies we use, see our Privacy Policy.","acceptLabel":"Accept","declineLabel":"Decline","disclaimer":"We won't track your information when you visit our site. But in order to comply with your preferences, we'll have to use just one tiny cookie so that you're not asked to make this choice again.","modalText":null}},"legacyCustomization":{"position":0,"accentColor":"#00bda5","showCloseButton":true},"gpcSettings":{"enabled":false,"notificationText":null}}],"blog.gestran.com.br":[{"id":104642,"portalId":23701626,"label":"GDPR Policy","enabled":true,"configuration":{"allUrlsAndLocations":true,"path":null,"targetedCountries":[],"targetedRegions":[]},"policy":{"type":3,"text":{"notification":"This website stores cookies on your computer. These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media. To find out more about the cookies we use, see our Privacy Policy.","acceptLabel":"Accept","declineLabel":"Decline","disclaimer":"We won't track your information when you visit our site. But in order to comply with your preferences, we'll have to use just one tiny cookie so that you're not asked to make this choice again.","modalText":null}},"legacyCustomization":{"position":0,"accentColor":"#00bda5","showCloseButton":true},"gpcSettings":{"enabled":false,"notificationText":null}}],"gestran.webflow.io":[{"id":285886,"portalId":23701626,"label":"Banner webflow.io","enabled":true,"configuration":{"allUrlsAndLocations":false,"path":null,"targetedCountries":["BR"],"targetedRegions":[]},"policy":{"type":2,"text":{"notification":"
Este site armazena cookies em seu computador. Esses cookies são usados para coletar informações sobre como você interage com nosso site e nos permite lembrar de você. Usamos essas informações para melhorar e personalizar sua experiência e para análises e métricas sobre nossos visitantes, tanto nesse site quanto em outras mídias. Para obter mais informações sobre os cookies que usamos, leia nossa Política de Privacidade.
","acceptLabel":"Aceitar","declineLabel":"Recusar","disclaimer":"Se você recusar, suas informações não serão rastreadas quando você acessar este site. Um cookie simples será usado em seu navegador para lembrar sobre sua preferência de não ser rastreado.","modalText":{"acceptAllLabel":"Aceitar tudo","cookieSettingsLabel":"Configurações de cookies","saveSettingsLabel":"Salvar configurações","introduction":{"description":"Esse site usa cookies. Usamos cookies essencialmente para melhorar e analisar sua experiência em nossos sites e para fins de marketing. Como respeitamos o seu direito à privacidade, você pode escolher não permitir alguns tipos de cookies. Clique nos diferentes títulos de categorias para saber mais e alterar as configurações padrão. O bloqueio de determinados tipos de cookies pode afetar negativamente sua experiência no site e limitar os serviços que podemos oferecer.","label":"Sobre cookies","toggleLabel":null},"categories":{"necessary":{"description":"Esses cookies são necessários para o funcionamento do site e não podem ser desativados em nossos sistemas. Em geral, eles são definidos em resposta às ações tomadas por você, ou seja, em uma solicitação de serviço, como ao definir suas preferências de privacidade, fazer login ou preencher formulários. Saiba mais sobre cookies necessários.","label":"Obrigatório","toggleLabel":"Sempre ativo"},"analytics":{"description":"Esses cookies nos ajudam a entender como os visitantes se envolvem com o site. Podemos usar um conjunto de cookies para coletar informações e gerar relatórios sobre as estatísticas de utilização do site. Os dados coletados, juntamente com alguns dos cookies de publicidade descritos, também podem ser usados para ajudar a mostrar anúncios mais relevantes na Web e medir as interações com os anúncios que exibimos. Saiba mais sobre cookies de análise.","label":"Análise","toggleLabel":null},"advertisement":{"description":"Usamos cookies para tornar nossos anúncios mais envolventes e valiosos para os visitantes do site. Algumas aplicações comuns dos cookies incluem a seleção da publicidade com base na relevância para o usuário, a melhoria dos relatórios sobre desempenho das campanhas e a prevenção de anúncios repetidos para os usuários. Saiba mais sobre cookies de publicidade..","label":"Publicidade","toggleLabel":null},"functionality":{"description":"Usamos um conjunto de cookies que é opcional para o funcionamento do site. Esses cookies são definidos somente em resposta às informações fornecidas no site para personalizar e otimizar a experiência, bem como para lembrar seu histórico de chat. Saiba mais sobre cookies de funcionalidade.","label":"Funcionalidade","toggleLabel":null}}}}},"legacyCustomization":{"position":0,"accentColor":"#00c08b","showCloseButton":false},"gpcSettings":{"enabled":false,"notificationText":"Seu sinal GPC foi detectado. Embora alguns cookies sejam necessários para o correto funcionamento de nosso site e serviços, o consentimento com todos os cookies não essenciais foi recusado automaticamente. Você pode alterar suas preferências a qualquer momento. Para saber mais sobre os cookies que usamos, consulte nossa Política de Privacidade.
"}}],"lp.gestran.com.br":[{"id":104640,"portalId":23701626,"label":"GDPR Policy","enabled":true,"configuration":{"allUrlsAndLocations":true,"path":null,"targetedCountries":[],"targetedRegions":[]},"policy":{"type":3,"text":{"notification":"This website stores cookies on your computer. These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media. To find out more about the cookies we use, see our Privacy Policy.","acceptLabel":"Accept","declineLabel":"Decline","disclaimer":"We won't track your information when you visit our site. But in order to comply with your preferences, we'll have to use just one tiny cookie so that you're not asked to make this choice again.","modalText":null}},"legacyCustomization":{"position":0,"accentColor":"#00bda5","showCloseButton":true},"gpcSettings":{"enabled":false,"notificationText":null}}],"www.gestran.com.br":[{"id":302943,"portalId":23701626,"label":"Banner cookie site principal","enabled":true,"configuration":{"allUrlsAndLocations":true,"path":null,"targetedCountries":[],"targetedRegions":[]},"policy":{"type":2,"text":{"notification":"Este site armazena cookies em seu computador. Esses cookies são usados para coletar informações sobre como você interage com nosso site e nos permite lembrar de você. Usamos essas informações para melhorar e personalizar sua experiência e para análises e métricas sobre nossos visitantes, tanto nesse site quanto em outras mídias. Para obter mais informações sobre os cookies que usamos, leia nossa Política de Privacidade.
","acceptLabel":"Aceitar","declineLabel":"Recusar","disclaimer":"Se você recusar, suas informações não serão rastreadas quando você acessar este site. Um cookie simples será usado em seu navegador para lembrar sobre sua preferência de não ser rastreado.","modalText":{"acceptAllLabel":"Aceitar tudo","cookieSettingsLabel":"Configurações de cookies","saveSettingsLabel":"Salvar configurações","introduction":{"description":"Esse site usa cookies. Usamos cookies essencialmente para melhorar e analisar sua experiência em nossos sites e para fins de marketing. Como respeitamos o seu direito à privacidade, você pode escolher não permitir alguns tipos de cookies. Clique nos diferentes títulos de categorias para saber mais e alterar as configurações padrão. O bloqueio de determinados tipos de cookies pode afetar negativamente sua experiência no site e limitar os serviços que podemos oferecer.","label":"Sobre cookies","toggleLabel":null},"categories":{"necessary":{"description":"Esses cookies são necessários para o funcionamento do site e não podem ser desativados em nossos sistemas. Em geral, eles são definidos em resposta às ações tomadas por você, ou seja, em uma solicitação de serviço, como ao definir suas preferências de privacidade, fazer login ou preencher formulários. Saiba mais sobre cookies necessários.","label":"Obrigatório","toggleLabel":"Sempre ativo"},"analytics":{"description":"Esses cookies nos ajudam a entender como os visitantes se envolvem com o site. Podemos usar um conjunto de cookies para coletar informações e gerar relatórios sobre as estatísticas de utilização do site. Os dados coletados, juntamente com alguns dos cookies de publicidade descritos, também podem ser usados para ajudar a mostrar anúncios mais relevantes na Web e medir as interações com os anúncios que exibimos. Saiba mais sobre cookies de análise.","label":"Análise","toggleLabel":null},"advertisement":{"description":"Usamos cookies para tornar nossos anúncios mais envolventes e valiosos para os visitantes do site. Algumas aplicações comuns dos cookies incluem a seleção da publicidade com base na relevância para o usuário, a melhoria dos relatórios sobre desempenho das campanhas e a prevenção de anúncios repetidos para os usuários. Saiba mais sobre cookies de publicidade..","label":"Publicidade","toggleLabel":null},"functionality":{"description":"Usamos um conjunto de cookies que é opcional para o funcionamento do site. Esses cookies são definidos somente em resposta às informações fornecidas no site para personalizar e otimizar a experiência, bem como para lembrar seu histórico de chat. Saiba mais sobre cookies de funcionalidade.","label":"Funcionalidade","toggleLabel":null}}}}},"legacyCustomization":{"position":0,"accentColor":"#00c08b","showCloseButton":false},"gpcSettings":{"enabled":false,"notificationText":""}}]}]);
_hsp.push(['setCustomizationSettings', {"gestran.webflow.io":{"bannerColor":"#ffffff","bannerTextColor":"#15295a","fontFamily":"Poppins","fontSize":{"number":12,"units":"px"},"bannerSettingsButtonTextColor":"#15295a","bannerWidth":{"number":80,"units":"em"},"bannerPadding":{"number":2,"units":"em"},"bannerCorners":0,"bannerButtonCorners":0,"bannerAcceptButtonStyle":{"color":"#00465c","textColor":"#73fb9a","borderColor":"#73fb9a"},"bannerDeclineButtonStyle":{"color":"#EEEEEE","textColor":"#00465c","borderColor":"#EEEEEE"},"position":1,"showCloseButton":false,"modalColor":"#fafbff","modalTextColor":"#15295a","modalWidth":{"number":50,"units":"em"},"modalContainerPadding":{"number":2,"units":"em"},"modalCorners":0,"modalButtonCorners":2,"modalAcceptButtonStyle":{"color":"#425b76","textColor":"#fafbff","borderColor":"#425b76"},"modalSaveSettingsButtonStyle":{"color":"#fafbff","textColor":"#425b76","borderColor":"#425b76"},"modalCategoryCorners":0,"modalCategoryColor":"#ffffff","modalCategoryTextColor":"#15295a","modalCategoryToggleOnColor":"#425b76","modalCategoryToggleOffColor":"#f1f1f1"},"www.gestran.com.br":{"bannerColor":"#ffffff","bannerTextColor":"#333333","fontFamily":"Poppins","fontSize":{"number":14,"units":"px"},"bannerSettingsButtonTextColor":"#15295a","bannerWidth":{"number":67,"units":"em"},"bannerPadding":{"number":2,"units":"em"},"bannerCorners":0,"bannerButtonCorners":0,"bannerAcceptButtonStyle":{"color":"#425b76","textColor":"#73fb9a","borderColor":"#73fb9a"},"bannerDeclineButtonStyle":{"color":"#425b76","textColor":"#ffffff","borderColor":"#425b76"},"position":1,"showCloseButton":true,"modalColor":"#fafbff","modalTextColor":"#15295a","modalWidth":{"number":50,"units":"em"},"modalContainerPadding":{"number":2,"units":"em"},"modalCorners":0,"modalButtonCorners":2,"modalAcceptButtonStyle":{"color":"#425b76","textColor":"#fafbff","borderColor":"#425b76"},"modalSaveSettingsButtonStyle":{"color":"#fafbff","textColor":"#425b76","borderColor":"#425b76"},"modalCategoryCorners":0,"modalCategoryColor":"#ffffff","modalCategoryTextColor":"#15295a","modalCategoryToggleOnColor":"#425b76","modalCategoryToggleOffColor":"#f1f1f1"}}]);
_hsp.push(['addCookieDomain', '.gestran.com.br']);
_hsp.push(['addCookieDomain', '.hsforms.com']);
_hsp.push(['addCookieDomain', '.hs-sites.com']);
_hsp.push(['addCookieDomain', '.hubspot.com']);
_hsp.push(['addCookieDomain', '.hubspotpagebuilder.com']);
_hsp.push(['setUseGeoLocation']);
_hsp.push(['setApiBaseUrl', 'https://js.hs-banner.com/v2']);
/**
* HubSpot Cookie Banner Code Copyright 2024 HubSpot, Inc. http://www.hubspot.com
*/
!function(){var e=[,function(e,t){var n;function o(){var e,t;t=arguments[0]||{};this.config={};this.config.elements=t.elements?t.elements:[];this.config.attributes=t.attributes?t.attributes:{};this.config.attributes[o.ALL]=this.config.attributes[o.ALL]?this.config.attributes[o.ALL]:[];this.config.allow_comments=!!t.allow_comments&&t.allow_comments;this.allowed_elements={};this.config.protocols=t.protocols?t.protocols:{};this.config.add_attributes=t.add_attributes?t.add_attributes:{};this.dom=t.dom?t.dom:document;for(e=0;e0;)this.current_element.removeChild(this.current_element.firstChild);i.appendChild(this.current_element)}if(!this.config.remove_all_contents&&!this.config.remove_element_contents[a])for(t=0;t|\/|[a-z]:\\|\\\\).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,s=/\((\S*)(?::(\d+))(?::(\d+))\)/;function r(e){var t=i.exec(e);if(!t)return null;var o=t[2]&&0===t[2].indexOf("native"),r=t[2]&&0===t[2].indexOf("eval"),a=s.exec(t[2]);if(r&&null!=a){t[2]=a[1];t[3]=a[2];t[4]=a[3]}return{file:o?null:t[2],methodName:t[1]||n,arguments:o?[t[2]]:[],lineNumber:t[3]?+t[3]:null,column:t[4]?+t[4]:null}}var a=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;function c(e){var t=a.exec(e);return t?{file:t[2],methodName:t[1]||n,arguments:[],lineNumber:+t[3],column:t[4]?+t[4]:null}:null}var l=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,h=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function d(e){var t=l.exec(e);if(!t)return null;var o=t[3]&&t[3].indexOf(" > eval")>-1,i=h.exec(t[3]);if(o&&null!=i){t[3]=i[1];t[4]=i[2];t[5]=null}return{file:t[3],methodName:t[1]||n,arguments:t[2]?t[2].split(","):[],lineNumber:t[4]?+t[4]:null,column:t[5]?+t[5]:null}}var u=/^\s*(?:([^@]*)(?:\((.*?)\))?@)?(\S.*?):(\d+)(?::(\d+))?\s*$/i;function g(e){var t=u.exec(e);return t?{file:t[3],methodName:t[1]||n,arguments:[],lineNumber:+t[4],column:t[5]?+t[5]:null}:null}var f=/^\s*at (?:((?:\[object object\])?[^\\/]+(?: \[as \S+\])?) )?\(?(.*?):(\d+)(?::(\d+))?\)?\s*$/i;function _(e){var t=f.exec(e);return t?{file:t[2],methodName:t[1]||n,arguments:[],lineNumber:+t[3],column:t[4]?+t[4]:null}:null}t.parse=o}],t={};function n(o){var i=t[o];if(void 0!==i)return i.exports;var s=t[o]={exports:{}};e[o](s,s.exports,n);return s.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};n.d(t,{a:t});return t};n.d=function(e,t){for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})};n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};!function(){"use strict";const e="_hspb_loaded",t="_hsp",o="_hsq",i="_hsGeoTargetingTest",s="_hsGpcSignal",r="_hsScanningMode",a="_hspb_ran",c="hsdbg",l="_hsPrivacyTest",h="hs-eu-cookie-confirmation",d="hs-banner-gpc",u="hs-banner-parent",g="hs-modal",f="hs-modal-content",_={NECESSARY:"necessary",ANALYTICS:"analytics",ADVERTISEMENT:"advertisement",FUNCTIONALITY:"functionality"},m="hs-hidden",p="hs-banner-style",b="hs-banner-modal-style",y="disabledHsPopups",v="PRIVACY",C="disableHubSpotCookieBanner",x="hsCookieBannerLoaded",S=[...["AT","BE","BG","HR","CY","CZ","DK","EE","FI","FR","DE","GR","HU","IE","IT","LV","LT","LU","MT","NL","PL","PT","RO","SK","SI","ES","SE"],...["IS","LI","NO"],"GB"],w="hs-banner-google-font",T="google-font-injected",k=[[0,400],[0,700],[1,400]],O="https://fonts.googleapis.com/css2";class E{constructor(e,t){this.win=e;this.doc=t;this.hasLoadedBaseStyle=!1;this.hasLoadedCbcStyle=!1}setHasLoadedBaseStyle(e){this.hasLoadedBaseStyle=e}setHasLoadedCbcStyle(e){this.hasLoadedCbcStyle=e}getWindow(){return this.win}getDocument(){return this.doc}getNavigator(){return this.getWindow().navigator}getLocation(){return this.getWindow().location}getPathname(){return this.getLocation().pathname}getHostname(){try{return this.getLocation().hostname}catch(e){return this.getDocument().domain}}getHasLoadedBaseStyle(){return this.hasLoadedBaseStyle}getHasLoadedCbcStyle(){return this.hasLoadedCbcStyle}}const I=new E(window,document);function A(){return I}class L{constructor(e){this.logPrepend="[HubSpot cookie banner]";this.context=e}info(e){this.isDebugEnabled()&&this.context.getWindow().console.log(`${this.logPrepend} ${e}`)}debug(e){this.isDebugEnabled()&&this.context.getWindow().console.debug(`${this.logPrepend} ${e}`)}error(e){this.isDebugEnabled()&&this.context.getWindow().console.error(`${this.logPrepend} ${e}`)}isDebugEnabled(){return this.context.getDocument().location.search.includes(c)}}var N=new L(A());const B=[0,0,0,0],R=e=>e.some((e=>e>0)),P=(e,t)=>(e.map(((e,n)=>e-t[n])).find((e=>0!==e))||0)>=0;class D{constructor(e="",t=[],n=[]){this.wildcard=!1;this.targetedPathPrefix=e;this.targetedCountries=t;this.targetedRegions=n}test(e,t,n){const o=this.targetedPathPrefix.length+1;if(!e.startsWith(this.targetedPathPrefix))return B;const i=this.targetedCountries.length>0||this.targetedRegions.length>0,s=void 0!==t&&this.targetedCountries.includes(t),r=t&&n?`${t}-${n}`:void 0,a=void 0!==r&&this.targetedRegions.includes(r);return!i||s||a?[this.wildcard?0:1,a?1:0,s?1:0,o]:B}static fromJS(e){const{allUrlsAndLocations:t,path:n,targetedCountries:o,targetedRegions:i}=e;return t?new D:new D(n||"",o||[],i||[])}}class G{constructor(e){this.value=e}getValue(){return this.value}static fromJS(e){if(!e)return this.TOP;switch(e){case 0:default:return this.TOP;case 1:return this.BOTTOM;case 2:return this.BOTTOM_LEFT;case 3:return this.BOTTOM_RIGHT;case 4:return this.CENTER}}}G.TOP=new G(0);G.BOTTOM=new G(1);G.BOTTOM_LEFT=new G(2);G.BOTTOM_RIGHT=new G(3);G.CENTER=new G(4);class U{constructor(e,t,n){this.position=e;this.accentColor=t;this.showCloseButton=n}static fromJS(e){const{position:t,accentColor:n,showCloseButton:o}=e;return new U(G.fromJS(t),n,o||!1)}}var M=n(1),$=n.n(M);const F=new($())({attributes:{a:["href","title","target"],blockquote:["cite"],ol:["start","type"],q:["cite"],ul:["type"],span:["class"]},elements:["a","b","blockquote","br","caption","cite","code","dd","dl","dt","em","h1","h2","h3","h4","h5","h6","i","li","ol","p","pre","q","small","strike","strong","sub","sup","u","ul","font","div","span"],protocols:{a:{href:["http","https","mailto",$().ALL]},blockquote:{cite:["http","https",$().RELATIVE]},q:{cite:["http","https",$().RELATIVE]}},remove_contents:["style","script"],add_attributes:{a:{rel:"noopener"}}}),Y=e=>{if(!e)return e;const t=document.createElement("div");try{const n=document.createRange().createContextualFragment(e),o=F.clean_node(n);t.appendChild(o.cloneNode(!0))}catch(t){N.error(`we had an error sanitizing an html string: ${e}`)}return t.innerHTML},H=e=>({__html:e||""});class V{constructor(e,t,n){this.description=e;this.label=t;this.toggleLabel=n}static fromJS(e){return new V(e.description,e.label,e.toggleLabel)}getSanitizedText(){return new V(Y(this.description),Y(this.label),Y(this.toggleLabel))}}class z{constructor(e,t,n,o,i,s,r){this.acceptLabel=e;this.saveSettingsLabel=t;this.introduction=n;this.necessary=o;this.analytics=i;this.advertisement=s;this.functionality=r}static fromJS(e){return new z(e.acceptAllLabel,e.saveSettingsLabel,V.fromJS(e.introduction),V.fromJS(e.categories.necessary),V.fromJS(e.categories.analytics),V.fromJS(e.categories.advertisement),V.fromJS(e.categories.functionality))}getSanitizedText(){return new z(Y(this.acceptLabel),Y(this.saveSettingsLabel),this.introduction.getSanitizedText(),this.necessary.getSanitizedText(),this.analytics.getSanitizedText(),this.advertisement.getSanitizedText(),this.functionality.getSanitizedText())}}class W{constructor(e,t,n,o,i,s){this.notification=e;this.acceptLabel=t;this.declineLabel=n;this.disclaimer=o;this.cookieSettingsLabel=i;this.modalText=s}static fromJS(e){return new W(e.notification,e.acceptLabel,e.declineLabel,e.disclaimer,e.modalText&&e.modalText.cookieSettingsLabel,e.modalText&&z.fromJS(e.modalText))}getSanitizedText(){return new W(Y(this.notification),Y(this.acceptLabel),Y(this.declineLabel),Y(this.disclaimer),this.cookieSettingsLabel&&Y(this.cookieSettingsLabel),this.modalText&&this.modalText.getSanitizedText())}}class q{constructor(e,t){this.value=e;this.name=t}getValue(){return this.value}getName(){return this.name}static isOptIn(e){return[this.OPT_IN,this.COOKIES_BY_CATEGORY].includes(e)}static fromJS(e){switch(e){case 0:return this.COOKIES_WITHOUT_BANNER;case 1:return this.NO_COOKIES;case 2:return this.NOTIFY;case 3:return this.OPT_IN;case 4:default:return this.COOKIES_BY_CATEGORY;case 5:return this.OPT_OUT;case 6:return this.OPT_OUT_BY_CATEGORY}}}q.COOKIES_WITHOUT_BANNER=new q(0,"COOKIES_WITHOUT_BANNER");q.NO_COOKIES=new q(1,"NO_COOKIES");q.NOTIFY=new q(2,"NOTIFY");q.OPT_IN=new q(3,"OPT_IN");q.COOKIES_BY_CATEGORY=new q(4,"COOKIES_BY_CATEGORY");q.OPT_OUT=new q(5,"OPT_OUT");q.OPT_OUT_BY_CATEGORY=new q(6,"OPT_OUT_BY_CATEGORY");class K{constructor(e,t){this.type=e;this.text=t}static fromJS(e){const{type:t,text:n}=e;return new K(q.fromJS(t),W.fromJS(n))}getSanitizedPolicy(){return new K(this.type,this.text.getSanitizedText())}}class j{constructor(e,t){this.enabled=e;this.notificationText=Y(t||"")}static fromJS(e){return new j(e.enabled,e.notificationText)}}class J{constructor(e,t,n,o,i,s,r,a){this.id=e;this.portalId=t;this.label=n;this.enabled=o;this.configuration=i;this.policy=s;this.customizationSettings=r;this.gpcSettings=a}static fromJS(e){const{id:t,portalId:n,label:o,enabled:i,configuration:s,policy:r,legacyCustomization:a,gpcSettings:c}=e;return new J(t,n,o,i,D.fromJS(s),K.fromJS(r),U.fromJS(a),j.fromJS(c))}withSanitizedPolicy(){return new J(this.id,this.portalId,this.label,this.enabled,this.configuration,this.policy.getSanitizedPolicy(),this.customizationSettings,this.gpcSettings)}toLegacyPrivacyPolicy(){let e;switch(this.policy.type){case q.COOKIES_WITHOUT_BANNER:e=0;break;case q.NO_COOKIES:e=2;break;case q.OPT_OUT:case q.NOTIFY:case q.OPT_IN:e=1;break;case q.OPT_OUT_BY_CATEGORY:case q.COOKIES_BY_CATEGORY:default:e=3}return{active:this.enabled,testing:!1,mode:e,policyWording:"not used",acceptWording:"not used",cancelWording:"not used",disclaimerWording:"not used",hideDecline:this.policy.type===q.NOTIFY,accentColor:this.customizationSettings.accentColor,bannerType:"not used",label:this.label,privacyDefault:!1,cookiesByCategory:{},id:this.id,portalId:this.portalId}}}const Q=1,Z=2,X=3,ee={[Q]:"analytics",[Z]:"advertisement",[X]:"functionality"};class te{constructor(e,t,n){this.allowed=e;this.previousCategories=n||{necessary:!0,analytics:!1,advertisement:!1,functionality:!1};this.categories=t||{necessary:!0,analytics:e,advertisement:e,functionality:e}}hasAnalyticsConsent(){return this.allowed||!0===this.categories.analytics}adsHasChangedToFalse(){return!0===this.previousCategories.advertisement&&!1===this.categories.advertisement}update(e){this.previousCategories=this.categories;this.categories=Object.assign({},this.categories,{analytics:e,advertisement:e,functionality:e});this.allowed=e;return this}updateCategories({analytics:e,advertisement:t,functionality:n}){this.previousCategories=this.categories;this.categories={necessary:!0,analytics:e,advertisement:t,functionality:n};this.allowed=e&&t&&n;return this}allCategoriesSelected(){return this.categories.necessary&&this.categories.analytics&&this.categories.advertisement&&this.categories.functionality}getSafeCopy(){return new te(this.allowed,{necessary:this.categories.necessary,analytics:this.categories.analytics,advertisement:this.categories.advertisement,functionality:this.categories.functionality},{necessary:this.previousCategories.necessary,analytics:this.previousCategories.analytics,advertisement:this.previousCategories.advertisement,functionality:this.previousCategories.functionality})}toCookieString(){return`${Q}:${this.categories.analytics}_${Z}:${this.categories.advertisement}_${X}:${this.categories.functionality}`}static fromCategories(e){const t=e.analytics&&e.advertisement&&e.functionality;return new te(t,Object.assign({},e,{necessary:!0}))}static buildFromCookieString(e){const t=e.includes(",")?e.split(","):e.split("_"),n={necessary:!0,analytics:!1,advertisement:!1,functionality:!1};t.forEach((e=>{const t=e.split(":");if(2!==t.length)return;const o=t[0],i=ee[o];i&&(n[i]="true"===t[1])}));const o=n.necessary&&n.advertisement&&n.analytics&&n.functionality;return new te(o,n)}static buildInitialConsent(){return new te(!1,{necessary:!0,analytics:!1,advertisement:!1,functionality:!1})}}const ne=e=>encodeURI(e),oe=e=>decodeURI(e),ie="_fbp",se="1970-01-01T00:00:01-00:00";class re{constructor(e){this.context=e;this.cookiesToSubdomain=!1;this.useSecureCookies=!1;this.currentDomain=""}isEnabled(){return this.context.getNavigator().cookieEnabled||"cookie"in this.context.getDocument()&&this.context.getDocument().cookie.length>0}addDomain(e){`.${this.context.getHostname()}`.endsWith(e.startsWith(".")?e:`.${e}`)&&(!this.currentDomain||e.length=0;o--){if(""===t[o]){if(0!==o){console.error(`Invalid Domain: ${e}, Parsed As: [${t}]`);return[]}continue}const s=`${t[o]}.${i}`;n.push(s);i=s}return n}removeFBPCookie(){const e=new Date(se),t=e.toUTCString();this.getDomainAncestry(this.context.getDocument().domain).forEach((n=>{this.setCookie(ie,"",{expires:`;expires=${t}`,expiresTime:e,path:";path=/",domain:`;domain=.${n}`,secure:"",sameSite:";SameSite=Lax"})}))}getGACookieNames(){const e=this.context.getDocument().cookie;if(!e)return[];const t=e.split(";"),n=new RegExp("^(_ga_[a-zA-Z0-9]+)=[^;]+$"),o=[];t.forEach((e=>{const t=e.trim().match(n);t&&o.push(t[1])}));return o}removeGACookie(){this.getGACookieNames().forEach((e=>this.remove(e)))}remove(e){this.set(e,"",{expiryDate:se})}setCookie(e,t,n){const o=n.expires+n.path+n.domain+n.sameSite+n.secure;this.writeCookie(`${e}=${t}${o}`)}writeCookie(e){this.context.getDocument().cookie=e}setCookiesToSubdomain(e){this.cookiesToSubdomain=e}setUseSecureCookies(e){this.useSecureCookies=e}}class ae{constructor(e,t){this.name=e;this.expirationDays=t}getName(){return this.name}getExpirationDays(){return this.expirationDays}}ae.CATEGORY_PREFERENCE_COOKIE=new ae("__hs_cookie_cat_pref",180);ae.GPC_BANNER_DISMISS_COOKIE=new ae("__hs_gpc_banner_dismiss",180);ae.NOTIFY_BANNER_DIMISS_COOKIE=new ae("__hs_notify_banner_dismiss",180);ae.OPT_OUT_COOKIE=new ae("__hs_opt_out",180);ae.INITIAL_OPT_IN=new ae("__hs_initial_opt_in",7);var ce,le,he,de,ue,ge,fe={},_e=[],me=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function pe(e,t){for(var n in t)e[n]=t[n];return e}function be(e){var t=e.parentNode;t&&t.removeChild(e)}function ye(e,t,n){var o,i,s,r={};for(s in t)"key"==s?o=t[s]:"ref"==s?i=t[s]:r[s]=t[s];if(arguments.length>2&&(r.children=arguments.length>3?ce.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(s in e.defaultProps)void 0===r[s]&&(r[s]=e.defaultProps[s]);return ve(e,r,o,i,null)}function ve(e,t,n,o,i){var s={type:e,props:t,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==i?++he:i};return null==i&&null!=le.vnode&&le.vnode(s),s}function Ce(e){return e.children}function xe(e,t){this.props=e,this.context=t}function Se(e,t){if(null==t)return e.__?Se(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t0?ve(g.type,g.props,g.key,null,g.__v):g)){if(g.__=n,g.__b=n.__b+1,null===(u=p[h])||u&&g.key==u.key&&g.type===u.type)p[h]=void 0;else for(d=0;d=n.__.length&&n.__.push({}),n.__[e]}function Xe(e){return ze=1,et(lt,e)}function et(e,t,n){var o=Ze(Ye++,2);return o.t=e,o.__c||(o.__=[n?n(t):lt(void 0,t),function(e){var t=o.t(o.__[0],e);o.__[0]!==t&&(o.__=[t,o.__[1]],o.__c.setState({}))}],o.__c=He),o.__}function tt(e,t){var n=Ze(Ye++,3);!le.__s&&ct(n.__H,t)&&(n.__=e,n.__H=t,He.__H.__h.push(n))}function nt(e){return ze=5,ot((function(){return{current:e}}),[])}function ot(e,t){var n=Ze(Ye++,7);return ct(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function it(){for(var e;e=We.shift();)if(e.__P)try{e.__H.__h.forEach(rt),e.__H.__h.forEach(at),e.__H.__h=[]}catch(t){e.__H.__h=[],le.__e(t,e.__v)}}le.__b=function(e){He=null,qe&&qe(e)},le.__r=function(e){Ke&&Ke(e),Ye=0;var t=(He=e.__c).__H;t&&(t.__h.forEach(rt),t.__h.forEach(at),t.__h=[])},le.diffed=function(e){je&&je(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(1!==We.push(t)&&Ve===le.requestAnimationFrame||((Ve=le.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(o),st&&cancelAnimationFrame(t),setTimeout(e)},o=setTimeout(n,100);st&&(t=requestAnimationFrame(n))})(it)),He=null},le.__c=function(e,t){t.some((function(e){try{e.__h.forEach(rt),e.__h=e.__h.filter((function(e){return!e.__||at(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],le.__e(n,e.__v)}})),Je&&Je(e,t)},le.unmount=function(e){Qe&&Qe(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{rt(e)}catch(e){t=e}})),t&&le.__e(t,n.__v))};var st="function"==typeof requestAnimationFrame;function rt(e){var t=He,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),He=t}function at(e){var t=He;e.__c=e.__(),He=t}function ct(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function lt(e,t){return"function"==typeof t?t(e):t}var ht=0;function dt(e,t,n,o,i){var s,r,a={};for(r in t)"ref"==r?s=t[r]:a[r]=t[r];var c={type:e,props:a,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--ht,__source:o,__self:i};if("function"==typeof e&&(s=e.defaultProps))for(r in s)void 0===a[r]&&(a[r]=s[r]);return le.vnode&&le.vnode(c),c}function ut(){return dt("svg",{version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 32 32",children:dt("path",{fill:"currentColor",d:"M4.3,27.7c0.2,0.2,0.6,0.5,1,0.5c0.4,0,0.8-0.2,1-0.5l9.6-9.5l9.6,9.5c0.2,0.2,0.6,0.5,1,0.5 c0.8,0,1.5-0.6,1.5-1.5c0-0.4-0.2-0.8-0.5-1L18.2,16l9.5-9.5c0.2-0.2,0.4-0.6,0.4-1c0-0.8-0.6-1.5-1.5-1.5c-0.4,0-0.7,0.2-1,0.4l0,0 L16,13.8L6.5,4.3C6.2,4,5.8,3.8,5.4,3.8c-0.8,0-1.5,0.6-1.5,1.5c0,0.5,0.2,0.8,0.5,1.1l0,0l9.5,9.5l-9.5,9.6c-0.2,0.2-0.5,0.6-0.5,1 S4.1,27.4,4.3,27.7L4.3,27.7z"})})}function gt(e,t,n,o){n&&o&&t.addEventListener("keydown",(t=>{if(!("Tab"===t.key||"Tab"===t.code))return;const i=e.getDocument().activeElement;if(t.shiftKey){if(i===n){o.focus();t.preventDefault()}}else if(i===o){n.focus();t.preventDefault()}}))}function ft({context:e,onAcceptAll:t,onCookieSettingsClick:n,onDeclineAll:o,setting:i,onCloseBannerButtonClick:s,isModalDisplayed:r}){const a=nt(null),c=nt(null),l=nt(null),d=nt(null),u=nt(null);tt((()=>{if(!a.current)return;const t=c.current||l.current,n=u.current||d.current;gt(e,a.current,t,n)}),[e,a,c,d,u,l]);const g=r?-1:0,f=i.policy,_=i.policy.type,m=_===q.OPT_OUT_BY_CATEGORY||_===q.COOKIES_BY_CATEGORY,p=_===q.OPT_IN||_===q.OPT_OUT||_===q.OPT_OUT_BY_CATEGORY||_===q.COOKIES_BY_CATEGORY;return dt("div",{id:h,className:i.customizationSettings.position===G.BOTTOM?"hs-cookie-notification-position-bottom":"","data-nosnippet":"true",role:"dialog","aria-describedby":"hs-eu-policy-wording","aria-label":"Cookie banner",ref:a,tabIndex:g,children:dt("div",{id:"hs-eu-cookie-confirmation-inner",children:[dt("div",{id:"hs-eu-header-container",children:dt("button",{id:"hs-eu-close-button",className:"hs-close-button",onClick:()=>s(_),ref:c,"aria-label":"Dismiss cookie banner",tabIndex:g,children:dt(ut,{})})}),dt("div",{id:"hs-eu-policy-wording",dangerouslySetInnerHTML:H(f.text.notification),ref:l,tabIndex:g}),f.text.disclaimer&&p&&dt("p",{id:"hs-eu-cookie-disclaimer",dangerouslySetInnerHTML:H(f.text.disclaimer),tabIndex:g}),dt("div",{id:"hs-eu-cookie-confirmation-buttons-area",children:dt("div",{id:"hs-eu-confirmation-button-group",children:[m&&dt("button",{onClick:()=>n(),id:"hs-eu-cookie-settings-button",dangerouslySetInnerHTML:H(f.text.cookieSettingsLabel),"aria-label":f.text.cookieSettingsLabel,tabIndex:g}),dt("div",{id:"hs-eu-opt-in-buttons",children:[dt("button",{id:"hs-eu-confirmation-button",onClick:()=>t(_),dangerouslySetInnerHTML:H(f.text.acceptLabel),"aria-label":f.text.acceptLabel,ref:d,tabIndex:g}),p&&dt("button",{id:"hs-eu-decline-button",onClick:()=>o(),dangerouslySetInnerHTML:H(f.text.declineLabel),ref:u,"aria-label":f.text.declineLabel,tabIndex:g})]})]})})]})})}function _t({category:e,disabled:t,onToggleChange:n,toggleValue:o}){const i=`hs-category-toggle-${e}`,s=`${i}-help-text`;return dt("div",{className:`hs-toggle-switch ${o?"hs-toggle-selected-flag":""}`,children:[dt("div",{className:"hs-toggle-switch-nob"}),dt("label",{htmlFor:i,children:dt("span",{className:"hs-hidden",id:s,children:`${e} cookies ${o?"allowed":"disallowed"}`})}),dt("input",{id:i,className:"hs-toggle-switch-input",type:"checkbox",onChange:e=>n(e.currentTarget.checked),checked:o,disabled:t,"aria-pressed":o,tabIndex:0,"aria-describedby":s,"data-test-id":i})]})}function mt({className:e}){return dt("svg",{version:"1.1",id:"plus-icon-svg",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 32 32",className:e,children:dt("path",{fill:"currentColor",d:"M22.6,15.3c-0.1-0.1-0.1-0.2-0.2-0.2l0,0l-0.1-0.2l0,0l0,0l0,0L12.1,4.2c-0.2-0.2-0.6-0.5-1.1-0.5 c-0.9,0-1.5,0.7-1.5,1.5c0,0.4,0.2,0.7,0.4,1l0,0l9.3,9.7l-9.3,9.7c-0.3,0.3-0.6,0.7-0.6,1.1c0,0.9,0.7,1.5,1.5,1.5 c0.5,0,1-0.2,1.2-0.6l0,0l10.2-10.7l0,0l0,0l0,0l0.2-0.2c0.1-0.1,0.1-0.2,0.2-0.2l0,0c0-0.1,0.1-0.2,0.1-0.2l0,0 c0-0.1,0.1-0.2,0.1-0.3l0,0c0-0.1,0-0.2-0.1-0.3l0,0v-0.1C22.6,15.5,22.6,15.4,22.6,15.3L22.6,15.3L22.6,15.3z"})})}function pt(e,t){if(!t)return!1;const n=e.getBoundingClientRect(),o=t.getBoundingClientRect();return n.top>=o.top&&n.left>=o.left&&n.bottom<=o.bottom&&n.right<=o.right}function bt({category:e,onToggleChange:t,sectionText:n,toggleValue:o,modalBodyRef:i}){const[s,r]=Xe(!1),a=e===_.NECESSARY,c=nt(null),l=nt(null),h=()=>{r(!s)};tt((()=>{if(s){const e=c.current;e&&e.scrollIntoView&&!pt(e,i.current)&&e.scrollIntoView({behavior:"smooth"})}}),[s,i,c]);return dt("div",{className:"hs-category-row",ref:c,children:[dt("div",{className:"hs-category-row-header",children:[dt("button",{id:`hs-category-${e}`,className:"hs-category-label",onClick:h,"aria-expanded":s,"aria-controls":`hs-category-description-${e}`,tabIndex:0,children:[dt(mt,{className:"description-accordion-arrow "+(s?"rotated":"")}),dt("span",{dangerouslySetInnerHTML:H(n.label)})]}),!a&&dt(_t,{category:e,disabled:e===_.NECESSARY,onToggleChange:e=>t(e),toggleValue:o}),n.toggleLabel&&dt("span",{className:"hs-always-active-label",dangerouslySetInnerHTML:H(n.toggleLabel),tabIndex:0,"aria-label":n.toggleLabel})]}),dt("div",{className:"hs-category-description "+(s?"visible":""),ref:l,style:{maxHeight:s&&l.current?2*l.current.scrollHeight:0},id:`hs-category-description-${e}`,dangerouslySetInnerHTML:H(n.description),tabIndex:0})]})}var yt=n(2),vt=n.n(yt),Ct=n(3),xt=n.n(Ct);const St=(e,t,n,o,i)=>{const s=e.getDocument(),r=s.createElement("style");r.setAttribute("type","text/css");r.setAttribute("id",o);const a=new RegExp("https://api_base_url","g"),c=i?t.replace(a,i):t,l=s.createTextNode(c);r.appendChild(l);s.head.appendChild(r)};function wt(e,t,n){if(!e.getHasLoadedBaseStyle()){St(e,vt(),t,p,n);e.setHasLoadedBaseStyle(!0)}}function Tt(e,t){if(!e.getHasLoadedCbcStyle()){St(e,xt(),t,b);e.setHasLoadedCbcStyle(!0)}}function kt({accentColor:e,consent:t,context:n,modalText:o,onAcceptCategories:i,onCloseModal:s}){const r=nt(null),a=nt(null),c=nt(null),l=nt(null);tt((()=>{r.current&>(n,r.current,a.current,c.current)}),[n,r,a,c]);const[h,d]=Xe(t.categories.analytics),[u,m]=Xe(t.categories.advertisement),[p,b]=Xe(t.categories.functionality),y=()=>{i({[_.ANALYTICS]:h,[_.ADVERTISEMENT]:u,[_.FUNCTIONALITY]:p})},v=()=>{d(!0);m(!0);b(!0);i({[_.ANALYTICS]:!0,[_.ADVERTISEMENT]:!0,[_.FUNCTIONALITY]:!0})};Tt(n,e);return dt("div",{id:g,"data-nosnippet":"true",children:dt("div",{id:f,ref:r,role:"alertdialog","aria-modal":"true","aria-labelledby":"hs-modal-introduction","aria-describedby":"hs-modal-introduction-description",tabIndex:0,children:[dt("div",{id:"hs-modal-header",children:dt("div",{id:"hs-modal-header-container",children:dt("button",{id:"hs-modal-close-button",className:"hs-close-button",onClick:()=>s(),ref:a,tabIndex:0,"aria-label":"Close modal",children:dt(ut,{})})})}),dt("div",{id:"hs-modal-body",ref:l,children:dt("div",{id:"hs-modal-body-container",children:[dt("div",{id:"hs-modal-introduction",children:dt("span",{dangerouslySetInnerHTML:H(o.introduction.label)})}),dt("div",{id:"hs-modal-introduction-description",children:dt("p",{dangerouslySetInnerHTML:H(o.introduction.description)})}),dt("div",{id:"hs-categories-container",children:[dt(bt,{category:_.NECESSARY,onToggleChange:()=>{},sectionText:o.necessary,toggleValue:!0,modalBodyRef:l}),dt(bt,{category:_.ANALYTICS,onToggleChange:e=>d(e),sectionText:o.analytics,toggleValue:h,modalBodyRef:l}),dt(bt,{category:_.ADVERTISEMENT,onToggleChange:e=>m(e),sectionText:o.advertisement,toggleValue:u,modalBodyRef:l}),dt(bt,{category:_.FUNCTIONALITY,onToggleChange:e=>b(e),sectionText:o.functionality,toggleValue:p,modalBodyRef:l})]})]})}),dt("div",{id:"hs-modal-footer",children:dt("div",{id:"hs-modal-footer-container",children:[dt("button",{id:"hs-modal-accept-all",onClick:()=>v(),tabIndex:0,children:o.acceptLabel}),dt("button",{id:"hs-modal-save-settings",onClick:y,ref:c,tabIndex:0,children:o.saveSettingsLabel})]})})]})})}function Ot({apiBaseUrl:e,consent:t,setting:n,context:o,onConsentChange:i,onCloseBannerWithoutConsent:s,dismissNotifyBanner:r}){const[a,c]=Xe(!1),l=e=>{if(e!==q.NOTIFY){t.update(!0);i(t)}else r()},d=()=>{t.update(!1);i(t)},u=({analytics:e,advertisement:n,functionality:o})=>{t.updateCategories({analytics:e,advertisement:n,functionality:o});i(t)},g=e=>{if(e!==q.OPT_IN&&e!==q.COOKIES_BY_CATEGORY)if(e!==q.NOTIFY){t.update(!0);i(t)}else r();else s()},f=()=>{c(!0)},_=()=>{c(!1);const e=o.getDocument().getElementById(h);e&&e.focus()};wt(o,n.customizationSettings.accentColor,e);return dt(Ce,{children:[dt(ft,{context:o,setting:n,onAcceptAll:l,onDeclineAll:d,onCookieSettingsClick:f,onCloseBannerButtonClick:g,isModalDisplayed:a}),a&&dt(kt,{accentColor:n.customizationSettings.accentColor,consent:t,context:o,modalText:n.policy.text.modalText,onAcceptCategories:u,onCloseModal:_})]})}function Et({apiBaseUrl:e,context:t,setting:n,onCloseBanner:o}){wt(t,n.customizationSettings.accentColor,e);return dt("div",{id:d,"data-nosnippet":"true",role:"dialog","aria-describedby":"hs-banner-gpc-wording",children:dt("div",{id:"hs-banner-gpc-inner",children:[dt("div",{id:"hs-banner-gpc-header",children:dt("button",{id:"hs-banner-gpc-close-button",className:"hs-close-button",onClick:o,"aria-label":"Dismiss banner",children:dt(ut,{})})}),dt("div",{id:"hs-banner-gpc-wording",dangerouslySetInnerHTML:H(n.gpcSettings.notificationText)})]})})}var It=["helvetica","arial","arial-black","verdana","tahoma","trebuchet ms","impact","times new roman","georgia","palatino","courier","comic sans ms","courier new","sans-serif","system-ui"];function At(e){return`${O}?family=${e}:ital,wght@${k.join(";")}&display=swap`}function Lt(e,t){const n=t||"Lato",o=e.getDocument(),i=e.getWindow();if(It.indexOf(n.toLowerCase())>-1)return;if(i[T])return;const s=o.createElement("link");s.setAttribute("href",At(n));s.setAttribute("rel","stylesheet");s.setAttribute("class",w);o.head.appendChild(s);i[T]=!0}const Nt=(e,t)=>{const n=e.getDocument().createElement("div");n.setAttribute("id",u);n.setAttribute("style",t);const o=e.getDocument().body;o.insertBefore(n,o.firstChild);return n};function Bt(e,t,n,o,i,s,r,a,c){const l=Nt(i,o);Lt(i,c);Fe(dt(Ot,{apiBaseUrl:e,consent:t,setting:n,context:i,onConsentChange:e=>s(e),onCloseBannerWithoutConsent:r,dismissNotifyBanner:a}),l);return l}function Rt(e,t,n,o,i,s){const r=Nt(t,o);Lt(t,s);Fe(dt(Et,{apiBaseUrl:e,context:t,setting:n,onCloseBanner:i}),r);return r}class Pt{static postActivity(e,t,n){fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)}).then((()=>N.info(`Sent a banner ${t} event.`))).catch((()=>N.error(`There was an issue sending a banner ${t} event.`)))}static sendView(e,t){Pt.postActivity(`${e}/activity/view`,"VIEW",t)}static sendClick(e,t){Pt.postActivity(`${e}/activity/click`,"CLICK",t)}}let Dt;!function(e){e[e.ROUND=0]="ROUND";e[e.SQUARE=1]="SQUARE";e[e.PILL=2]="PILL"}(Dt||(Dt={}));const Gt={[Dt.ROUND]:"0.5em",[Dt.SQUARE]:"0",[Dt.PILL]:"3em"},Ut={[Dt.ROUND]:"12px",[Dt.SQUARE]:"0",[Dt.PILL]:"0"},Mt=e=>null==e,$t=(e,t)=>t?[{cssVar:e,value:t}]:[],Ft=(e,t)=>t?[{cssVar:e,value:t}]:[],Yt=(e,t)=>t?[{cssVar:e,value:`${t.number}${t.units}`}]:[],Ht=(e,t)=>Mt(t)?[]:[{cssVar:e,value:Gt[t]}],Vt=(e,t)=>Mt(t)?[]:[{cssVar:e,value:Ut[t]}],zt=(e,t)=>Mt(t)?[]:[...Ft(`--hs-banner-${e}-color`,t.color),...Ft(`--hs-banner-${e}-text-color`,t.textColor),...Ft(`--hs-banner-${e}-border-color`,t.borderColor)],Wt=e=>Mt(e)?[]:[{cssVar:"--hs-banner-close-button-display",value:e?"flex":"none"}],qt=e=>{if(Mt(e))return[];switch(G.fromJS(e)){case G.BOTTOM:return[{cssVar:"--hs-banner-inset",value:"auto 50% 32px"},{cssVar:"--hs-banner-translate-x",value:"-50%"},{cssVar:"--hs-banner-translate-y",value:"0"}];case G.BOTTOM_LEFT:return[{cssVar:"--hs-banner-inset",value:"auto auto 32px 32px"},{cssVar:"--hs-banner-translate-x",value:"0"},{cssVar:"--hs-banner-translate-y",value:"0"}];case G.BOTTOM_RIGHT:return[{cssVar:"--hs-banner-inset",value:"auto 32px 32px auto"},{cssVar:"--hs-banner-translate-x",value:"0"},{cssVar:"--hs-banner-translate-y",value:"0"}];case G.CENTER:return[{cssVar:"--hs-banner-inset",value:"50% auto auto 50%"},{cssVar:"--hs-banner-translate-x",value:"-50%"},{cssVar:"--hs-banner-translate-y",value:"-50%"}];default:return[{cssVar:"--hs-banner-inset",value:"32px auto auto 50%"},{cssVar:"--hs-banner-translate-x",value:"-50%"},{cssVar:"--hs-banner-translate-y",value:"0"}]}},Kt=e=>e.map((e=>`${e.cssVar}:${e.value}`)).join(";"),jt=e=>[...Ft("--hs-banner-color",e.bannerColor),...Ft("--hs-banner-text-color",e.bannerTextColor),...Ft("--hs-banner-settings-text-color",e.bannerSettingsButtonTextColor),...Yt("--hs-banner-width",e.bannerWidth),...Yt("--hs-banner-padding",e.bannerPadding),...Vt("--hs-banner-corners",e.bannerCorners),...Ht("--hs-banner-button-corners",e.bannerButtonCorners),...zt("accept",e.bannerAcceptButtonStyle),...zt("decline",e.bannerDeclineButtonStyle),...Wt(e.showCloseButton),...qt(e.position),...Ft("--hs-banner-modal-color",e.modalColor),...Ft("--hs-banner-modal-text-color",e.modalTextColor),...Yt("--hs-banner-modal-padding",e.modalContainerPadding),...Yt("--hs-banner-modal-width",e.modalWidth),...Vt("--hs-banner-modal-corners",e.modalCorners),...Ht("--hs-banner-modal-button-corners",e.modalButtonCorners),...zt("modal-accept",e.modalAcceptButtonStyle),...zt("modal-save",e.modalSaveSettingsButtonStyle),...Vt("--hs-banner-modal-category-corners",e.modalCategoryCorners),...Ft("--hs-banner-modal-cateogry-color",e.modalCategoryColor),...Ft("--hs-banner-modal-category-text-color",e.modalCategoryTextColor),...Ft("--hs-banner-modal-toggle-on-color",e.modalCategoryToggleOnColor),...Ft("--hs-banner-modal-toggle-off-color",e.modalCategoryToggleOffColor),...$t("--hs-banner-font-family",e.fontFamily),...Yt("--hs-banner-font-size",e.fontSize)],Jt=e=>[...Ft("--hs-banner-accentColor",e.accentColor),...qt(e.position.getValue()),...Wt(e.showCloseButton)],Qt=e=>{const t={};if(!e)return t;const n=e.indexOf("-"),[o,i]=-1===n?[e,void 0]:[e.substring(0,n),e.substring(n+1)];o&&(t.countryCode=o);i&&(t.regionCode=i);return t};var Zt=n(4);const Xt=e=>e.stack?Zt.parse(e.stack).map((e=>({filename:e.file,function:e.methodName,args:e.arguments,lineno:e.lineNumber,colno:e.column}))):[],en=()=>{if(!document.currentScript)return null;const e=document.currentScript.getAttribute("src");return e?e.toLowerCase().includes("eu1")?"eu1":"na1":null},tn=()=>{if(!document.currentScript)return null;const e=document.currentScript.getAttribute("src");if(!e)return null;const t=new RegExp("/v2/(\\d+)/banner.js"),n=e.match(t);return n?n[1]:null},nn=(()=>{if(!document.currentScript)return null;const e=document.currentScript.getAttribute("src");return e?e.toLowerCase().includes("qa")?"qa":"prod":null})()||"prod",on=en()||"na1",sn=tn(),rn="https://exceptions{{hublet}}.hs-embed-reporting{{env}}.com/outpost",an=()=>"10000000-1000-4000-8000-100000000000".replace(/[018]/g,(e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))),cn=()=>"randomUUID"in crypto?crypto.randomUUID():an(),ln=(e,t)=>{const n="na1"!==e?`-${e}`:"",o="qa"===t?"qa":"";return rn.replace("{{hublet}}",n).replace("{{env}}",o)},hn=(e,t,n,o)=>{const i=Date.now()/1e3,s=Xt(e);return{level:"error",environment:t,tags:{region:n,hostname:window.location.hostname,portalId:sn},logger:"javascript",platform:"javascript",request:{headers:{"User-Agent":navigator.userAgent},url:window.location.href},event_id:cn().replace(/-/g,""),transaction:s.length>0?s[0].function:"unknown function",exception:{values:[{mechanism:{handled:!0,type:"generic"},type:e.name,value:e.message,stacktrace:{frames:s}}]},timestamp:i,extra:o}},dn=e=>{(new Image).src=e},un=(e,t)=>{const n=e instanceof Error?e:new Error(String(e)),o=hn(n,nn,on,t||{});dn(`${ln(on,nn)}/cookie-banner-v2/raw/error.gif?url=${o.request.url}\n &report=${encodeURIComponent(JSON.stringify(o))}`)},gn=(e,t)=>{try{e()}catch(e){console.error(e);t&&t(e)}},fn=e=>{if(!e.hsCookieBanner)return;const t=e.hsCookieBanner.rawPerfMetrics;if(!t)return;const n=["numSettings","bannerInitAt","bannerStartAt","bannerReadyAt"];for(const e of n)if(null==t[e])return;const o=null==t.geolocationReceivedAt||null==t.geolocationRequestedAt;return t.usesGeolocation&&o?void 0:{numSettings:t.numSettings,bannerInitAt:t.bannerInitAt,bannerStartAt:t.bannerStartAt,bannerReadyAt:t.bannerReadyAt,matchedBannerType:t.matchedBannerType,usesGpc:t.usesGpc,geolocationRequestInCriticalPath:t.geolocationRequestInCriticalPath,geolocationRequestDuration:t.usesGeolocation?t.geolocationReceivedAt-t.geolocationRequestedAt:void 0,bannerRendered:t.bannerRendered}},_n=()=>({numSettings:void 0,bannerInitAt:void 0,bannerStartAt:void 0,bannerReadyAt:void 0,matchedBannerType:void 0,usesGpc:!1,usesGeolocation:!1,geolocationRequestInCriticalPath:!1,geolocationReceivedAt:void 0,geolocationRequestedAt:void 0,bannerRendered:!1}),mn=()=>window.performance.now?Math.round(window.performance.now()):void 0,pn=(e,t,n)=>{try{if(!e.hsCookieBanner||!e.hsCookieBanner.rawPerfMetrics)return;e.hsCookieBanner.rawPerfMetrics[t]=n}catch(e){un(e)}};function bn(...e){(window.dataLayer=window.dataLayer||[]).push(arguments)}const yn=(e,t)=>!!(e&&!S.includes(e)||t&&q.isOptIn(t)),vn=(e,t,n)=>{const o=Qt(t).countryCode;if(!yn(o,n))return;const i=e.categories.advertisement?"granted":"denied";bn("consent","update",{ad_storage:i,analytics_storage:e.categories.analytics?"granted":"denied",ad_user_data:i,ad_personalization:i})},Cn=e=>fetch(e).then((t=>{if(!t.ok)throw new Error(`Non-2XX status: ${t.status}, url: ${e}`);return t.text()})),xn=async e=>{const t=`${e}/cf-location`,n=await Cn(t).catch((e=>{un(e,{failingComponent:"cfGeolocationWorkerRequest"});return null}));if(n)return n;const o=`https://${new URL(e).hostname}/cookie-banner-public/v2/cf-location`;return Cn(o)},Sn="wildcard.hs-banner.com",wn=e=>{e.configuration.wildcard=!0;return e};class Tn{constructor(e){this.publicMethods=["showBanner","hideBanner","addPrivacyConsentListener","setApiBaseUrl","setCookiesToSubdomain","setUseSecureCookies","addCookieDomain","addEnabledFeatureGates","setBannerSettings","setCustomizationSettings","setUseGeoLocation","setGeoLocation","setHubSpotConsent","addPrivacySettingsListener","revokeCookieConsent","useGoogleConsentModeV2","setBusinessUnitId"];this.enabledFeatureGates=[];this.businessUnitId=0;this.context=e;this.bannerSettings=[];this.privacyConsentListeners=[];this.privacySettingsListeners=[];this.useGeoLocation=!1;this.useGCMV2=!1;this.reportedMissingGeolocation=!1;this.cookie=new re(e);this.isRunningInTestMode=e.getLocation().search.includes(l);this.removeDeprecatedBannerCookies()}removeDeprecatedBannerCookies(){this.cookie.get(ae.OPT_OUT_COOKIE.getName())&&this.cookie.remove(ae.OPT_OUT_COOKIE.getName());this.cookie.get(ae.INITIAL_OPT_IN.getName())&&this.cookie.remove(ae.INITIAL_OPT_IN.getName())}run(){const e=this.context.getWindow();if(this.disableBannerFlagSet()){N.info('"PRIVACY" flag found in disabledHsPopups window queue. Banner script will not run.');return!0}pn(e,"numSettings",this.bannerSettings.length);this.findMatchingSetting();this.logGpcSignal();if(!this.matchedSetting){N.debug("we were unable to find the matching settings for this webpages. The banner will not run.");this.setConsent(new te(!0),{reportClick:!1});return!1}pn(e,"matchedBannerType",this.matchedSetting.policy.type.getValue());if(this.shouldScanningOverride()){this.setConsent(new te(!0),{reportClick:!1,persist:!0,treatAsConsentEvent:!0});return!0}const t=!!this.shouldGpcOverride();pn(e,"usesGpc",t);if(t){this.setConsent(new te(!1),{persist:!1,reportClick:!1});this.isGpcBannerDismissCookiePresent()||this.renderGpcBanner();return!0}switch(this.matchedSetting.policy.type){case q.NO_COOKIES:this.setConsent(new te(!1),{reportClick:!1});break;case q.OPT_IN:case q.COOKIES_BY_CATEGORY:if(this.useConsentFromExistingCookie())break;this.cookie.removeGACookie();this.setConsent(te.buildInitialConsent(),{persist:!1,reportClick:!1});this.renderBanner();break;case q.OPT_OUT_BY_CATEGORY:case q.OPT_OUT:if(this.useConsentFromExistingCookie())break;this.setConsent(new te(!0),{persist:!1,reportClick:!1});this.renderBanner();break;case q.NOTIFY:this.setConsent(new te(!0),{persist:!1,reportClick:!1});if(this.isNotifyBannerDismissCookiePresent())break;this.renderBanner();break;case q.COOKIES_WITHOUT_BANNER:default:this.setConsent(new te(!0),{reportClick:!1})}return!0}useConsentFromExistingCookie(){const e=this.readConsentCookie();if(e){this.setConsent(e,{persist:!1,reportClick:!1});e.hasAnalyticsConsent()||this.cookie.removeGACookie();return!0}return!1}shouldScanningOverride(){return[q.OPT_OUT,q.OPT_OUT_BY_CATEGORY,q.COOKIES_BY_CATEGORY,q.OPT_IN,q.NOTIFY].includes(this.matchedSetting.policy.type)&&this.context.getWindow()[r]}shouldGpcOverride(){return this.matchedSetting.gpcSettings.enabled&&this.getGpcSignal()}getGpcSignal(){const e=this.context.getLocation().search;if(e.includes(s)){return{TRUE:!0,FALSE:!1}[(new URLSearchParams(e).get(s)||"").toUpperCase()]}return this.context.getNavigator().globalPrivacyControl}logGpcSignal(){N.debug(`GPC signal: ${this.getGpcSignal()}`)}findMatchingSetting(){const e=this.context.getPathname(),{countryCode:t,regionCode:n}=Qt(this.geoLocation),o=this.bannerSettings.filter((e=>e.enabled)).map((o=>({setting:o,matchResult:o.configuration.test(e,t,n)}))).reduce(((e,t)=>P(e.matchResult,t.matchResult)?e:t),{setting:null,matchResult:B});R(o.matchResult)&&o.setting&&this.setMatchingSetting(o.setting.withSanitizedPolicy())}setMatchingSetting(e){this.matchedSetting=e;if(0===this.privacySettingsListeners.length)return;const t=e.toLegacyPrivacyPolicy();this.privacySettingsListeners.forEach((e=>this.safeCallListener(e,t)))}getMatchingSetting(){return this.matchedSetting}hasEnabledFeatureGate(e){return this.enabledFeatureGates&&this.enabledFeatureGates.includes(e)}setApiBaseUrl(e){/^https:\/\/js-?.{0,3}\.hs-banner(qa)?\.com.*/.test(e)?this.apiBaseUrl=e:N.error("unsupported base Api url provided.")}setBannerSettings(e){(e[this.getCurrentDomain()]||[]).forEach((e=>this.bannerSettings.push(J.fromJS(e))));(e[this.getWildcardDomain()]||[]).forEach((e=>this.bannerSettings.push(wn(J.fromJS(e)))))}setCustomizationSettings(e){this.styleOverrides=e[this.getCurrentDomain()];this.wildcardStyleOverrides=e[this.getWildcardDomain()];this.bannerParentElement&&this.bannerParentElement.setAttribute("style",this.getRenderStyles())}getCurrentDomain(){return this.context.getLocation().hostname}getWildcardDomain(){return 0===this.businessUnitId?Sn:`${this.businessUnitId}.${Sn}`}getCurrentGeoLocation(){const e=this.context.getWindow();pn(e,"usesGeolocation",!0);pn(e,"geolocationRequestedAt",mn());const t=this.context.getLocation().search;if(t.includes(i)){const e=new URLSearchParams(t).get(i);return Promise.resolve(e||"")}return xn(this.apiBaseUrl).then((t=>{pn(e,"geolocationReceivedAt",mn());return t})).catch((e=>{N.error("We could not fetch the geolocation.");un(e);return""}))}setGeoLocation(e){this.geoLocation=e;const{countryCode:t,regionCode:n}=Qt(this.geoLocation);try{null==t&&this.reportEmptyGeolocation(!1);"US"===t&&null==n&&this.reportEmptyGeolocation(!0)}catch(e){console.error("Failed to report missing geolocation data",e)}}addEnabledFeatureGates(e){e.forEach((e=>this.enabledFeatureGates.push(e)))}addCookieDomain(e){this.cookie.addDomain(e)}setCookiesToSubdomain(e){this.cookie.setCookiesToSubdomain(e)}setUseSecureCookies(e){this.cookie.setUseSecureCookies(e)}setUseGeoLocation(){this.useGeoLocation=!0}useGoogleConsentModeV2(){if(!this.useGCMV2){this.useGCMV2=!0;this.consent&&this.sendConsentToGCMV2(this.consent.getSafeCopy())}}sendConsentToGCMV2(e){const t=this.matchedSetting&&this.matchedSetting.policy&&this.matchedSetting.policy.type;if(this.geoLocation)vn(e,this.geoLocation,t);else{null==this.gcmGeoLocationFetchPromise&&(this.gcmGeoLocationFetchPromise=this.getCurrentGeoLocation().then((e=>{this.setGeoLocation(e);return e})));this.gcmGeoLocationFetchPromise.then((n=>{vn(e,n,t)})).catch((e=>{un(e)}))}}addPrivacyConsentListener(e){this.consent&&this.safeCallListener(e,this.consent.getSafeCopy());this.privacyConsentListeners.push(e)}setConsent(e,t){const n={persist:!0,treatAsConsentEvent:!0,reportClick:!0},{persist:o,treatAsConsentEvent:i,reportClick:s}=Object.assign({},n,t);this.consent=e;i&&this.hideBanner();o&&this.setConsentCookie();if(!this.isRunningInTestMode){s&&(this.consent.hasAnalyticsConsent()?this.trackAction("trackApproveCookieConsent"):this.trackAction("trackDeclineCookieConsent"));if(i){this.privacyConsentListeners.forEach((t=>this.safeCallListener(t,e.getSafeCopy())));this.useGCMV2&&this.sendConsentToGCMV2(e.getSafeCopy());this.consent.adsHasChangedToFalse()&&this.cookie.removeFBPCookie()}s&&this.sendClickActivity()}}getConsent(){return this.consent.getSafeCopy()}setConsentCookie(){if(!this.matchedSetting||this.isRunningInTestMode)return;const e=this.matchedSetting.policy.type;e!==q.NO_COOKIES&&e!==q.COOKIES_WITHOUT_BANNER&&e!==q.NOTIFY&&this.cookie.set(ae.CATEGORY_PREFERENCE_COOKIE.getName(),this.consent.toCookieString(),{daysToExpire:ae.CATEGORY_PREFERENCE_COOKIE.getExpirationDays(),path:"/"})}readConsentCookie(){const e=this.cookie.get(ae.CATEGORY_PREFERENCE_COOKIE.getName());return e?te.buildFromCookieString(e):null}safeCallListener(e,t){try{e(t)}catch(e){N.error("error calling listener.")}}isGpcBannerDismissCookiePresent(){return!!this.cookie.get(ae.GPC_BANNER_DISMISS_COOKIE.getName())}setGpcBannerDismissCookie(){this.cookie.set(ae.GPC_BANNER_DISMISS_COOKIE.getName(),"true",{daysToExpire:ae.GPC_BANNER_DISMISS_COOKIE.getExpirationDays(),path:"/"})}isNotifyBannerDismissCookiePresent(){return!!this.cookie.get(ae.NOTIFY_BANNER_DIMISS_COOKIE.getName())}setNotifyBannerDismissCookie(){this.cookie.set(ae.NOTIFY_BANNER_DIMISS_COOKIE.getName(),"true",{daysToExpire:ae.NOTIFY_BANNER_DIMISS_COOKIE.getExpirationDays(),path:"/"})}dismissNotifyBanner(){this.hideBanner();this.setNotifyBannerDismissCookie()}dismissGpcBanner(){this.hideBanner();this.setGpcBannerDismissCookie()}getRenderStyles(){try{if(!this.matchedSetting)return"";if(this.styleOverrides&&!this.matchedSetting.configuration.wildcard){N.debug("using style overrides");return Kt(jt(this.styleOverrides))}if(this.wildcardStyleOverrides&&this.matchedSetting.configuration.wildcard){N.debug("using wildcard style overrides");return Kt(jt(this.wildcardStyleOverrides))}N.debug("using legacy customization render styles");return Kt(Jt(this.matchedSetting.customizationSettings))}catch(e){console.error("unable to utilize style overrides",e);return""}}renderGpcBanner(){this.bannerParentElement=Rt(this.apiBaseUrl,this.context,this.matchedSetting,this.getRenderStyles(),this.dismissGpcBanner.bind(this),this.styleOverrides&&this.styleOverrides.fontFamily);pn(this.context.getWindow(),"bannerRendered",!0);this.sendViewActivity()}renderBanner(){this.bannerParentElement=Bt(this.apiBaseUrl,this.consent,this.matchedSetting,this.getRenderStyles(),this.context,this.setConsent.bind(this),this.hideBanner.bind(this),this.dismissNotifyBanner.bind(this),this.styleOverrides&&this.styleOverrides.fontFamily);pn(this.context.getWindow(),"bannerRendered",!0);this.sendViewActivity()}hideBanner(){if(this.bannerParentElement){const e=this.bannerParentElement.children;for(let t=0;t1){e[1].classList.remove(m)}else e[0].classList.remove(m)}invoke(e,t){if(!this.publicMethods.includes(e)||!Reflect.has(this,e)){N.debug(`failed to invoke method ${e} of the banner.`);throw new Error("Could not invoke banner method.")}Reflect.get(this,e).apply(this,t)}getBaseActivityPayload(){const e=this.context.getWindow().hsVars,t=e&&e.page_id;return{bannerGeoLocation:this.geoLocation||"",bannerPolicyId:this.matchedSetting.id,bannerType:this.matchedSetting.policy.type.getName(),domain:this.context.getHostname(),portalId:this.matchedSetting.portalId,contentId:t||""}}sendClickActivity(){if(!this.consent||!this.matchedSetting||this.isRunningInTestMode)return;const e={consentAllowed:this.consent.allowed,consentAnalytics:this.consent.categories.analytics,consentAdvertisement:this.consent.categories.advertisement,consentFunctionality:this.consent.categories.functionality},t=Object.assign({},this.getBaseActivityPayload(),e);Pt.sendClick(this.apiBaseUrl,t)}sendViewActivity(){if(!this.matchedSetting||this.isRunningInTestMode)return;const e=this.getBaseActivityPayload();Pt.sendView(this.apiBaseUrl,e)}getAnalyticsQueue(){return this.context.getWindow()[o]=this.context.getWindow()[o]||[]}trackAction(e){try{this.getAnalyticsQueue().push([e])}catch(e){N.error(`Unable to send analytics tracking event: ${e}`)}}disableBannerFlagSet(){if(!0===this.context.getWindow()[C])return!0;const e=this.context.getWindow()[y]||[];return Array.isArray(e)&&e.includes(v)}setBusinessUnitId(e){this.businessUnitId=e}revokeCookieConsent(){[ae.INITIAL_OPT_IN.getName(),ae.OPT_OUT_COOKIE.getName(),ae.CATEGORY_PREFERENCE_COOKIE.getName(),ae.GPC_BANNER_DISMISS_COOKIE.getName(),ae.NOTIFY_BANNER_DIMISS_COOKIE.getName(),"__hssc","__hssrc","__hstc","__hs_do_not_track","hubspotutk","messagesUtk"].forEach((e=>this.cookie.remove(e)));this.trackAction("trackRevokeCookieConsent");this.setConsent(new te(!1),{reportClick:!1})}addPrivacySettingsListener(e){this.matchedSetting&&this.safeCallListener(e,this.matchedSetting.toLegacyPrivacyPolicy());this.privacySettingsListeners.push(e)}reportEmptyGeolocation(e){if(this.reportedMissingGeolocation)return;this.reportedMissingGeolocation=!0;const t=`${this.apiBaseUrl}/geolocation-reporting`;navigator&&navigator.sendBeacon?navigator.sendBeacon(t,JSON.stringify(e)):fetch(`${t}${e?"?missingRegionInUS=true":""}`,{keepalive:!0}).catch((()=>{un("unable to report missing geolocation data")}))}setHubSpotConsent(e){const t=te.fromCategories(e);this.consent=t;this.privacyConsentListeners.forEach((e=>this.safeCallListener(e,t.getSafeCopy())))}}const kn=new CustomEvent(x);class On{constructor(e){this.priorityFunctions=["setApiBaseUrl","setCookiesToSubdomain","setUseSecureCookies","addCookieDomain","addEnabledFeatureGates","setBusinessUnitId","setBannerSettings"];const n=e.getWindow();if(Array.isArray(n[t]))this.queue=n[t];else{this.queue=[];n[t]=this.queue}this.banner=new Tn(e);this.context=e}queuePushFn(e){try{if(!(e&&Array.isArray(e)&&e.length>0)){N.debug("invalid arguments passed to the banner queue.");return!1}const t=e[0],n=e.slice(1);this.banner.invoke(t,n);return!0}catch(e){N.error("There was an error running banner method.")}return!1}overrideQueuePush(){this.queue.push=this.queuePushFn.bind(this)}dequeueEntries(e){for(let t=0;t{this.banner.setGeoLocation(e);this.banner.run();t.dispatchEvent(kn)}))}else{this.banner.run();t.dispatchEvent(kn)}}}}function En(t){const n=t.getWindow(),o=t.getDocument();if(n[e]){N.info("the cookie banner has already been loaded via another script.");return}n[e]=!0;pn(n,"bannerStartAt",mn());o.addEventListener(x,(()=>{pn(n,"bannerReadyAt",mn())}));new On(t).run()}function In(e,t){gn((()=>{En(e)}),t)}function An(e,t){const n=e.getWindow(),o=e.getDocument();n.hsCookieBanner={rawPerfMetrics:_n(),getPerfMetrics:()=>fn(n)};pn(n,"bannerInitAt",mn());function i(){In(e,t);o.removeEventListener("DOMContentLoaded",i)}"loading"===o.readyState?o.addEventListener("DOMContentLoaded",i):In(e,t)}const Ln=A();gn((()=>{An(Ln,un)}),un)}()}();
/****** Cookie Banner version static-1.3028 *****/